package com.woniuxy.controller;

import com.woniuxy.pojo.RbacManager;
import com.woniuxy.pojo.RbacMnagerDTO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/rbacManager")
public class RbacManagerController {
    @RequestMapping("/comeJson")
    public ModelAndView comeJson(@RequestBody RbacMnagerDTO rbacMnagerDTO) {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("msg",rbacMnagerDTO);
        modelAndView.setViewName("/index.jsp");
        return modelAndView;
    }
}
